package com.ikun.hospayservice.config;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author ：Mr.ZJW
 * @date ：Created 2023/9/20 17:40
 * @description：alipay沙箱环境配置
 */
@Slf4j
@Data
@Component
@ConfigurationProperties(prefix = "alipay")
public class AliPayConfig {

    /**
     * appId
     */
    private String appId = "9021000134696780";

    /**
     * 私钥
     */
    private String appPrivateKey = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDBAdrLNp/1Ah6n8i2ptI7bvS5SartIru+usUIBZgGWnnE4zMEvFKRbg1OC3w6vnQJphTrS648qQexZhPgKqPmZ7EdNyHwXuN0qwBSwn1C6Xr9Q+e+Bh6L/bs9E564/yUP4eFUrYmQbBhabPimdV/KfdIFbosEFzeYXutw4s+fGCc3x8JPxQE192ouy7hVhlIIB2AZnfpY7P+rBfawOBmYIYSLNd8Ljx+3U/vH+qvcSs2M9mWbW1PNF6O9z/LStiV4/vCMXhzfqzsxVJY3JF06rFXZU4n7wV9sDyc6t1tTrYadF7309pbM7ZgkCHmkn+Rda5xfSUJq0Uow98vLJdH1lAgMBAAECggEADtlHre6r67uYBC+7l5zOiNVLJQgVFIhw5C26+ESSxrW13DrUefzKkEfQOvdSN+yKbPfVCLkasJOVzWVPd/J8EX1+FtvfwCt2yH0ymkwHd+8mJOK1rG90+NXbmF+CpmGjmxAW7VmKfhG/13220eYcQmxCL3ycAQhQNW8o1ivxHukrr5J/tgx0VUx5fRbNqMksSsreopn17jF1sEm8za/C3fdtiiHtPmPobr1MvDHUuPYQzyHSVqMzaHbdrpS/7y17sMA++YPWJOEM5yhwinnZItnxPjzaVHO6q2RzdFOqA+wpLZC8KTIm+GyeQBKePjjgX2Apc4jE2dV3Lak+1nGwgQKBgQD95ega70oEDIadBJWadU1VkbQII4Jgy08oXGCSHGNfmpJ00awUcUvNMn0Mx6Zm9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/Sotkk0sHr2c515NEbe0x9HzbL1/laHTleyO/v7/RNjRu2zjHCXBsvlKZoyqjgihnlZ3iGCZitWXO9xa3Go2fHFpfyLhH/IDSn2pDWtMPn3xhgV8xigVhj+wcNMmK3gMcTOytLGqmDRQIDAQAB";

    /**
     * 服务器异步通知页面路径
     */
    private String notifyUrl = "https://www.baidu.com/";

    /**
     * 页面跳转同步通知页面路径，回调地址
     */
    private String returnUrl = "https://www.baidu.com/";

    /**
     * 字符编码格式
     */
    private String charset = "UTF-8";

    /**
     * 数据格式
     */
    private String format = "json";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 支付宝网关
     */
    private String gateway = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";


}

